import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// 引入适配插件 重新引入本地适配文件
import "./utils/amfe-flexible.js";
// 引入国际化
import i18n from "./i18n/index";
import '../assets/style/icon.less'
import VConsole from 'vconsole'
const vConsole = new VConsole();
Vue.use(vConsole);

import {
  getChecksumWithStr
} from '../pages/utils/Utils'
Vue.prototype.$getCheckSum = getChecksumWithStr


// Vue.config.productionTip = false;
// import Vue from 'vue';
import {
  Slider,
  Switch,
  Col,
  Row,
  Field,
  Swipe,
  SwipeItem,
  Checkbox,
  CheckboxGroup
} from 'vant';

// import Echarts from 'vue-echarts'
// import 'echarts/lib/chart/line'

// Vue.component('chart',Echarts)

// import echarts from 'echarts'
import * as echarts from 'echarts';

Vue.prototype.$echarts = echarts

Vue.use(Slider);
Vue.use(Switch);
Vue.use(Col);
Vue.use(Row);
Vue.use(Field);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
new Vue({
  router,
  store,
  i18n,
  render: (h) => h(App),
}).$mount("#app");